package indi.kider.server.employee.service;

import indi.kider.common.model.employee.Worker;
import pers.vankid.common.utils.page.PageRequest;
import pers.vankid.common.utils.page.PageResponse;

import java.util.List;

/**
 * Created by sq on 2018/6/4.
 */
public interface WorkerService {
    /**
     * 根据id获取
     * @param id
     * @return
     */
    Worker getWorkerById(Long id);

    /**
     * 获取分页查询
     * @param request
     * @return
     */
    PageResponse<List<Worker>> getWorkerPages(PageRequest<Worker> request);

    /**
     * 不分页查询
     * @param Worker
     * @return
     */
    List<Worker>getWorkers(Worker Worker);

    /**
     * 新增
     * @param Worker
     * @return
     */
    Worker add(Worker Worker) throws Exception;

    /**
     * 更新
     * @param Worker
     * @return
     */
    Worker modify(Worker Worker) throws Exception;
    /**
     * 删除
     */
    void delById(Long id);
}
